package com.lgh.springcloudalibaba.service;

/**
 * ******************************************************
 *
 * @author liugh9
 * @version 1.0
 * @classname PaymentService
 * @description
 * @date 2022/12/20 10:49
 * <p>
 * ******************************************************
 */

import com.lgh.springcloud.entities.CommonResult;
import com.lgh.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "nacos-payment-provider", fallback = PaymentFallbackService.class)
public interface PaymentService {

    @GetMapping(value = "/paymentSQL/{id}")
    CommonResult<Payment> paymentSQL(@PathVariable("id") Long id);
}


